package socket.client;

import java.io.IOException;
import java.io.PrintWriter;

import android.os.Bundle;
import android.app.Activity;
import android.content.Intent;
import android.util.Log;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;
import android.support.v4.app.NavUtils;
import android.text.method.PasswordTransformationMethod;

public class Login extends Activity {
	private EditText LoginPwd;
	
    @Override
    public void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_login);
        LoginPwd = (EditText)findViewById(R.id.LoginPwd);
        PasswordTransformationMethod padFormat = new PasswordTransformationMethod();
        LoginPwd.setTransformationMethod(padFormat);
        Button btn = (Button) findViewById(R.id.bt_Login);
        
        btn.setOnClickListener(new OnClickListener() {
            public void onClick(View v) {
            	Intent intent = new Intent(Login.this, TCPClientActivity.class);
            	startActivity(intent);
            }
        });
    }

    @Override
    public boolean onCreateOptionsMenu(Menu menu) {
        getMenuInflater().inflate(R.menu.activity_login, menu);
        return true;
    }

    
}
